<?php include './application/views/top.php'; ?>
<script src="/static/js/ajaxfileupload.js"></script>
<script src="/static/js/gsdai.js"></script>
<script src="/static/js/My97DatePicker/WdatePicker.js"></script>
<script src="/static/js/formCheck.js"></script>
<div class="clear"></div>
<div class="user_bottom all"></div>
<div class="clear h50"></div>
<div class="layout uc">
	<?php include './application/views/user/left.php'; ?>
	<?php
		$sex = $v['sex'];
		$cardType = $v['cardType'];
	?>
	<div class="right">
		<div class="menu_list"><?php include './application/views/user/menu.php'; ?></div>
		<div class="seach">
        	<form action="/account/details.html" method="get">
			<span>记录时间:</span>
            <input type="text" value="<?php echo $where['strtime'] ? $where['strtime'] : ''; ?>" name="start_time" onfocus="WdatePicker()" readonly>
			<span>到</span>
			<input type="text" value="<?php echo $where['endtime'] ? $where['endtime'] : ''; ?>" name="end_time" onfocus="WdatePicker()" readonly>
			<select class="sel" name="type">
			<?php foreach($log_type as $k => $v){?>
			<option value="<?php echo $k;?>" <?php if($where['ftype']==$k) echo "selected='selected'";?>><?php echo $k > 0 ? $v : '资金类型';?></option>
			<?php }?>
			</select>
            <input type="submit" class="but"  value="查询">
			<a class="excel" href="/account/details.html?act=excel&start_time=<?php echo $where['strtime'] ? $where['strtime'] : ''; ?>&end_time=<?php echo $where['endtime'] ? $where['endtime'] : ''; ?>&type=<?php echo $where['ftype'];?>">导出结果</a>
            </form>
		</div>  
        <div class="cont">
        
         <ul class="tbt">
        	<li class="w100">类型</li>
            <li class="w100">操作金额</li>
            <li class="w100">总金额</li>
            <li class="w100">可用金额</li>
            <li class="w100">冻结金额</li>
            <li class="w100">待收金额</li>
            <li class="w150">记录时间</li>
            <li class="w168 npr">备注信息</li>
        </ul>
        <?php foreach($list as $val){?>
         <ul class="tbc">
        	<li class="w100"><?php echo $log_type[$val['ftype']];?></li>
            <li class="w100">
            <?php if($val['op'] == 1){?> 
			<font color="#FF0000"  >-<?php echo number_format($val['money'],2);?></font>
			<?php }else{?> 
			<font color="#009900" ><?php echo number_format($val['money'],2);?></font>
			<?php }?>
            </li>
            <li class="w100">&yen;<?php echo number_format($val['total'],2);?></li>
            <li class="w100">&yen;<?php echo number_format($val['use_money'],2);?></li>
            <li class="w100">&yen;<?php echo number_format($val['no_use_money'],2);?></li>
            <li class="w100">&yen;<?php echo number_format($val['collection'],2);?></li>
            <li class="w150"><?php echo date('Y-m-d H:i:s',$val['add_time']);?></li>
            <li class="w168 npr"><?php echo cut_str($val['remark'], 32);?></li>
        </ul>
        <?php }?>
        </div>
        <div class="clear h30"></div>
        <div class="page">
            <div class="pagination">
            <?php echo $this->pagination->create_links();?>
            </div>
        </div>
	</div>
</div>
<div class="clear h50"></div>
<?php include "./application/views/footer.php";?>